﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Buddy.Samples
{
    static partial class Program
    {
        static void Samples_Here()
        {
            Console.WriteLine("processing is happening at:");
            Console.WriteLine(Here.Spot(HereOptions.All));

            var p = new Processor();
            p.Process1();
            p.Process2();
            Console.WriteLine("number = {0} ({1})", p.Number, Here.Spot(HereOptions.All));
            p.Number = 10;

            Console.WriteLine("press any key to continue ...");
            Console.ReadKey();
        }
    }

    class Processor
    {
        public void Process1()
        {
            Console.WriteLine(Here.Spot(HereOptions.All));
        }

        public void Process2()
        {
            Console.WriteLine(Here.Spot(HereOptions.All));
        }

        public int Number
        {
            get
            {
                Console.WriteLine(Here.Spot(HereOptions.All));
                return 0;
            }
            set { Console.WriteLine(Here.Spot(HereOptions.All)); }
        }
    }
}
